<link rel="stylesheet" type="text/css" href="<?= base_url(); ?>assets/css/admin/stickytooltip.css" />
<script type="text/javascript" src="<?= base_url(); ?>assets/js/admin/stickytooltip.js"></script>
<div class="grid_7">
    <div class="box">
        <h2>
            <a href="#" id="toggle-tables">requirements Report</a>
        </h2>
        <fieldset> 
            <legend>requirements List</legend>

            <div style=" margin-bottom: 10px">
                <span style=" float: left; width:40px;" ><strong>Id</strong></span>
                <span style=" float: left; width:110px" ><strong>Posted On</strong></span>
                <span style=" float: left; width:220px"><strong>User Name </strong></span>
                <span style=" float: left; width:250px"><strong> Version</strong></span>
                <span style=" float: left; width:100px"><strong>Make Year</strong></span>
                <span style="width:10px"><strong></strong></span>
            </div>
            <?php foreach ($requirements as $requirements) : ?>

                <div style="display: block;margin-bottom: 10px; float: left">
                    <span style="float: left; width:40px" ><?= $requirements->id; ?></span>
                    <span style="float: left; width:110px" ><?= substr($requirements->posted_on, 0, 12); ?></span>
                    <span style="float: left; width:220px"><?= $this->member_model->get_member($requirements->user)->first_name . ' ' . $this->member_model->get_member($requirements->user)->last_name; ?>
                       
                    </span>
                    <span style=" float: left; width:250px">
                         <?= $this->management_model->get_version('CAR', $requirements->version)->version; ?> 
                             <span id="mystickytooltip" class="stickytooltip">
                            <a href="#"><img src="<?= base_url(); ?>assets/images/sicon.png" alt="Comment" border="0" 
                                             ONMOUSEOVER="ddrivetip('Color:<?= $requirements->color; ?></br>Price:<?= $requirements->price; ?></br>Description :<?= $requirements->comments; ?>')" ONMOUSEOUT="hideddrivetip()"/></a>
                        </span>
                    </span>
                    <span style="float: left; width:100px"><?= $requirements->make_year; ?></span>
                    <span style=" width:10px"></span>
                </div>
                <div style="float:right;margin-bottom: 10px;">
                    <?php if ($requirements->status == 1) { ?>
                        <a href="<?= base_url(); ?>admin/reports/change_requirement_status/<?= $requirements->id; ?>/<?= $requirements->status; ?>" class="link-button" onclick="return confirm('Are you sure you want to Active?')">Inactive Now </a></span> 
                    <?php } else { ?>
                        <a href="<?= base_url(); ?>admin/reports/change_requirement_status/<?= $requirements->id; ?>/<?= $requirements->status; ?>" class="link-button" onclick="return confirm('Are you sure you want to Active?')">Active Now </a></span> 
                    <?php } ?>
                </div>
            <?php endforeach; ?>
        </fieldset>    
        <div class="pagination" align="left"> <?php echo $this->pagination->create_links(); ?>  </div>
    </div>
</div>